Skip to content

Conversation

@xmzhao0822
Copy link
Contributor

@xmzhao0822 xmzhao0822 commented Apr 25, 2025


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az aks namespace add -g --cluster-name --name
az aks namespace show -g --cluster-name --name
az aks namespace list -g --cluster-name
az aks namespace update -g --cluster-name --name
az aks namespace delete -g --cluster-name --name
az aks namespace get-credentials -g --cluster-name --name

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Apr 25, 2025

⚠️Azure CLI Extensions Breaking Change Test
⚠️aks-preview
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd aks namespace sub group aks namespace added

@azure-client-tools-bot-prd
Copy link

Hi @xmzhao0822,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Apr 25, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link

github-actions bot commented Apr 25, 2025

@xmzhao0822 xmzhao0822 changed the title Xmzhao/namespace ops {AKS} create managed namespace commands May 21, 2025
@xmzhao0822 xmzhao0822 marked this pull request as ready for review May 21, 2025 21:12
Copilot AI review requested due to automatic review settings May 21, 2025 21:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces managed namespace commands for AKS including add, update, show, list, delete, and get-credentials. Key changes include a version bump in setup.py, new functionality and validations for managed namespaces with supporting tests, and updates to CLI command definitions and help documentation.

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/aks-preview/setup.py Bumps version to 18.0.0b3 to correspond with the new managed namespace features.
src/aks-preview/azext_aks_preview/tests/latest/test_validators.py Adds a ManagedNamespace class and new tests for namespace name and resource quota validations.
src/aks-preview/azext_aks_preview/tests/latest/test_managednamespace.py Provides tests that cover invalid and valid scenarios for adding/updating managed namespaces.
src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py Includes integration-level tests for the new namespace commands.
src/aks-preview/azext_aks_preview/managednamespace.py Implements functions to construct and update managed namespace configurations.
src/aks-preview/azext_aks_preview/custom.py, commands.py, _validators.py, _params.py, _help.py, _format.py, _consts.py, _client_factory.py Update CLI command definitions, argument parsing, help texts, formatting of output, and constant definitions for the managed namespace commands.
src/aks-preview/HISTORY.rst Updates the history with the new version and feature description.

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queued live test to validate the change, test passed!

  • test_aks_managed_namespace

FumingZhang
FumingZhang previously approved these changes May 22, 2025
@zhoxing-ms
Copy link
Contributor

Please resolve these conflicts

zhoxing-ms
zhoxing-ms previously approved these changes May 26, 2025
@zhoxing-ms
Copy link
Contributor

@xmzhao0822 Could you please resolve this conflict?

@xmzhao0822 xmzhao0822 dismissed stale reviews from zhoxing-ms and FumingZhang via fe4987b May 27, 2025 02:39
@FumingZhang
Copy link
Member

Applied fix for failed test cases in PR #8798

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@zhoxing-ms zhoxing-ms merged commit ce1414e into Azure:main May 28, 2025
24 checks passed
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ aks-preview-18.0.0b4 ] : https://dev.azure.com/msazure/One/_build/results?buildId=125543338&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants